#ifndef _config_h
#define _config_h

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "types.h"

/* initConf()
 * --------------------
 * Reads data from config file and stores in a static struct
 */
serverconfp initConf(void);

/*
 * isModifiedSince()
 * --------------------------
 * Returns true if <filename> is modified since <date>,
 * date being in standard HTTP header form
 */
int isModifiedSince(char *filename, char *date);

/*
 * *getHTTPPort();
 * ---------------
 * Returns HTTP port specified in webserver.cfg
 */
char *getHTTPPort();

/*
 * *getAdminPort();
 * ---------------
 * Returns admin port specified in webserver.cfg
 */
char *getAdminPort();

/*
 * *getHTTPFolder();
 * ---------------
 * Returns HTTP folder specified in webserver.cfg
 */
char *getHTTPFolder();

/*
 * *getAdminPassword();
 * ---------------
 * Returns admin password specified in webserver.cfg
 */
char *getAdminPassword();

/*
 * *getLogFileName();
 * ---------------
 * Returns log filename specified in webserver.cfg
 */
char *getLogFileName();

#endif